package com.kadron.favorites;

import java.util.Date;

import com.kadron.common.KUtil;
import com.kadron.datamodel.KModel;
import com.kadron.paging.KRow;

public class AbstractKFavorite implements KModel, KRow {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7642605358448921205L;

	private long userFavoritesId;
	private Date created;
	private String thumb;

	public AbstractKFavorite() {
		super();
	}

	public AbstractKFavorite(long userFavoritesId, Date created, String thumb) {
		super();
		this.userFavoritesId = userFavoritesId;
		this.created = created;
		this.thumb = thumb;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	@Override
	public long getId() {
		return userFavoritesId;
	}

	public boolean isThumbAvb() {
		return !KUtil.isEmpty(thumb);
	}

}
